home *** CD-ROM | disk | FTP | other *** search
- Subject: Re: FW_CODPart::WritePartInfo
- Sent: 7/15/96 3:06 PM
- Received: 7/15/96 3:21 PM
- From: Mark Lanett, mlanett@meer.net
- Reply-To: ODF Interest, ODF-Interest@CILabs.ORG
- To: OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
-
- At 1:19 PM 7/15/96, Hutchings, Richard B. "Brad" wrote:
- >(2) It doesn't look easy to subclass FW_CODPart. Considering that some
- >protocol (offscreen canvases in particular) is not yet implemented, it
- >would be useful to have macros that support that better. At least until the
- >framework matures a little, or goes direct-to-SOM or whatever.
-
- One option here is to change the framework. Changes will of course cause
- you maintenance problems down the road, but if you limit things to calls
- into your own code in other files then things shouldn't be too bad.
-
- All the ODPart methods are dispatched into FW_CODPart (all methods are
- static). You would be interested in changing FW_CODPart::CanvasUpdated in
- FWODPart.cpp. The (small number of) advantages of inserting your own code
- here include: the FW_TRY block is already present, and you don't need to
- deal with idl/som.
-
- Since this is the second time today I've suggested changing the framework,
- let me just point out a few things:
-
- * You can NOT change ODFLibrary (the license agreement permits you only to
- ship the fat release build ODFLibrary). These are the SLxxx and PRxxx
- files.
- * You can change the *statically-linked* portions of ODF all you want
- (FWxxx files).
-
- You should probably view changing the framework only as a stopgap measure
- for bugs or the like, given the maintenance issue. But also don't be afraid
- to do so. We give you source code so you can: use it as is, copy it as the
- pattern for some future work, or change it for your specific needs.
-
-
- --
- Mark Lanett, OpenDoc Framework, Apple Computer
-
-
-